<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models\Base;

use Carbon\Carbon;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class WorkTicketImage
 *
 * @property int $id
 * @property int $work_ticket_id 工单id
 * @property int $work_ticket_detail_id 工单详情id
 * @property string $path 图片路径
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property \Illuminate\Support\Carbon|null $deleted_at
 * @method static \Illuminate\Database\Eloquent\Builder|WorkTicketImage newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|WorkTicketImage newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|WorkTicketImage onlyTrashed()
 * @method static \Illuminate\Database\Eloquent\Builder|WorkTicketImage query()
 * @method static \Illuminate\Database\Eloquent\Builder|WorkTicketImage whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkTicketImage whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkTicketImage whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkTicketImage wherePath($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkTicketImage whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkTicketImage whereWorkTicketDetailId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkTicketImage whereWorkTicketId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkTicketImage withTrashed()
 * @method static \Illuminate\Database\Eloquent\Builder|WorkTicketImage withoutTrashed()
 * @mixin \Eloquent
 */
class WorkTicketImage extends Model
{
	use SoftDeletes;
	use HasDateTimeFormatter;
	const ID = 'id';
	const WORK_TICKET_ID = 'work_ticket_id';
	const WORK_TICKET_DETAIL_ID = 'work_ticket_detail_id';
	const PATH = 'path';
	const CREATED_AT = 'created_at';
	const UPDATED_AT = 'updated_at';
	const DELETED_AT = 'deleted_at';
	protected $table = 'work_ticket_images';

	protected $casts = [
		self::ID => 'int',
		self::WORK_TICKET_ID => 'int',
		self::WORK_TICKET_DETAIL_ID => 'int',
		self::CREATED_AT => 'datetime',
		self::UPDATED_AT => 'datetime'
	];
}
